var inventory = new Vue({
    el:'#inventory',
    data:{
        /*查询第一部分的定义*/
        ruleForm:{
            name:'',
            date1:'',
            date2:''
        },
        /*查询第二部分的定义*/
        relForm:{
            name:'',
            type:'',
            maintain:'',
            time:'',
        },
        /*新增的字段*/
        addForm:{
            name:'',
            num:'',
            price:'',
            ghs:'',
            state:'',
            remark:'',
            date:'',
        },
        activeName:'0',
        dialogFormVisible:false,
        tableData2: [{
            name: '轮胎',
            num: '666',
            price: '888',
            ghs: '米其林',
            state: '未结账',
            remark: '未结账',
            date: '2016-05-04',
        }, {
            name: '刹车片',
            num: '66',
            price: '88',
            ghs: '好配件',
            state: '未结账',
            remark: '未结账',
            date: '2016-05-04',
        }, {
            name: '车膜',
            num: '666',
            price: '888',
            ghs: '高级车饰',
            state: '未结账',
            remark: '未结账',
            date: '2016-05-04',
        }, {
            name: '防冻液',
            num: '666',
            price: '888',
            ghs: '有你么',
            state: '未结账',
            remark: '未结账',
            date: '2016-05-04',
        }]
    },
    methods: {
        /*更多按钮的单击方法*/
        activeClick: function () {
            var _this = this;
            if (_this.activeName == '0' || _this.activeName == '2') {
                _this.activeName = '1';
            } else {
                _this.activeName = '2';
            }
        },
    },
    created:function(){
        var _this = this;
    }
});